package cn.iocoder.yudao.module.of.dal.mysql.taskgenuser;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.of.dal.dataobject.taskgenuser.TaskGenUserDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.of.controller.admin.taskgenuser.vo.*;

/**
 * 会议、收文  主责部门指派任务生成人员 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface TaskGenUserMapper extends BaseMapperX<TaskGenUserDO> {

    default PageResult<TaskGenUserDO> selectPage(TaskGenUserPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<TaskGenUserDO>()
                .eqIfPresent(TaskGenUserDO::getTaskGenUserId, reqVO.getTaskGenUserId())
                .likeIfPresent(TaskGenUserDO::getTaskGenUserName, reqVO.getTaskGenUserName())
                .betweenIfPresent(TaskGenUserDO::getCreateTime, reqVO.getCreateTime())
                .eqIfPresent(TaskGenUserDO::getTaskType, reqVO.getTaskType())
                .orderByDesc(TaskGenUserDO::getId));
    }

}